package extra.android_service;

import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Binder;
import android.os.IBinder;

import androidx.annotation.Nullable;

import java.util.Timer;

/**
 * 播放服务
 * ref link: https://github.com/skyhacker2/SPlayer/blob/master/app/src/main/java/com/eleven/app/splayer/PlayerService.java
 */
public class PlayMusicService extends Service {

    private MediaPlayer mediaPlayer;
    private IBinder iBinder = new LocalBinder();

    private Timer timer;

    public class LocalBinder extends Binder {
        public PlayMusicService getService() {
            return PlayMusicService.this;
        }
    }

    // todo
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }
}

